<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">        
        <li><a href="{:url('Format/index')}">规格列表</a></li>
		<li><a href="{:url('Format/add')}">新增规格</a></li>
        <li class="active"><a href="#">修改品项</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('format/editpost')}" method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <input type="hidden" name="brandid" value="{$data.id}">
                            <label for="input-site-format" class="col-sm-2 control-label"><span class="form-required">*</span>规格名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site-format" name="format_name" value="{$data.format}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-vipprice" class="col-sm-2 control-label"><span class="form-required">*</span>状态</label>
                            <div class="col-md-6 col-sm-10">
                               <if condition="$data.status eq 1">
                                <select name="format">
                                    <option value="1">开启</option>
                                    <option value="0">关闭</option>
                                </select>
                              <else/>
                                   <select name="format">
                                       <option value="0">关闭</option>
                                       <option value="1">开启</option>
                                   </select>
                               </if>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">{:lang('SAVE')}</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
    <!-- 预览js -->
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>